<?php

if (!isset($_GET['x'])) {
    require_once '../Resources/libs/smarty/libs/Smarty.class.php';
}  else {
    require_once '../../Resources/libs/smarty/libs/Smarty.class.php';
} 


class ConfigSmarty extends Smarty{

    function __construct() {
        parent::__construct();
        $this->template_dir="";
        $this->compile_dir="";
        $this->config_dir="../ConfigSite/Smarty";
        $this->allow_php_tag = true;
        $this->caching = true;
        $this->cache_lifetime = true;
    }
    
    function setDirectorio($modulo) {
        $this->template_dir = "../$modulo/view";
        $this->compile_dir = "../$modulo/view/compiler";
    }

}

?>
